﻿using System.Collections.Generic;
using Coleotrack.Core;
using Coleotrack.Data;

namespace Coleotrack.Service.Contracts
{
    public interface IUserService : IDataService<User>
    {
        User GetByEmail(string email);
        User GetByName(string name);
        bool Login(string username, string passwordHash);
        User GetByNameOrEmail(string nameOrEmail);
        IEnumerable<Role> GetAllRoles();

        IEnumerable<User> AllActive();
    }
}
